package com.github.plugin;

import com.github.livebase.plugins.PluginContext;
import com.github.livebase.plugins.Register;
import com.github.livebase.plugins.RegisterMataData;
import com.github.livebase.util.LiveContext;
import com.github.server.core.SimpleHandler;


import java.util.Arrays;
import java.util.List;

/**
 * @ClassName TestRegister
 * @description:
 * @author: biao532
 * @create: 2024-01-21 10:20
 * @Version 1.0
 **/

@RegisterMataData()
public class TestRegister implements Register<List<SimpleHandler>> {
    @Override
    public List<SimpleHandler> register(LiveContext liveContext, PluginContext context) {
        return Arrays.asList(
                new HttpRemoteControl("/control", liveContext));
    }
}
